﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using PowerHub.MES.Entities.BasicData;
using PowerHub.MES.Entities.ProcessRoute;
using PowerHub.MES.Entities.Production;

namespace PowerHub.MES.Entities.ProductPlanning;

/// <summary>
/// 产品
/// </summary>
[Table("ProductPlanning_ProductBill")]
public partial class ProductPlanning_ProductBill : BaseEntity
{
    /// <summary>
    /// 产品编码
    /// </summary>
    public string? ProductBillNo { get; set; }

    /// <summary>
    /// 产品名称
    /// </summary>
    public string? ProductBillName { get; set; }


    /// <summary>
    /// 计量单位
    /// </summary>
    public string? MeasuringUnitId { get; set; }


    /// <summary>
    /// 产品分类id
    /// </summary>
    public string? ProductClassifyId { get; set; }

    /// <summary>
    /// 销售价
    /// </summary>
    public decimal? SellingPrice { get; set; }

    /// <summary>
    /// 工艺路线id
    /// </summary>
    public string? CraftBillId { get; set; }

    /// <summary>
    /// 尺寸
    /// </summary>
    public string? Dimensions { get; set; }

    /// <summary>
    /// 型号
    /// </summary>
    public string? Model { get; set; }

    /// <summary>
    /// 功能
    /// </summary>
    public string? Function { get; set; }

    /// <summary>
    /// 颜色
    /// </summary>
    public string? Color { get; set; }

    /// <summary>
    /// 重量
    /// </summary>
    public string? Weight { get; set; }

    /// <summary>
    /// 外壳材质
    /// </summary>
    public string? ShellMaterial { get; set; }

    /// <summary>
    /// 电压
    /// </summary>
    public string? Voltage { get; set; }

    /// <summary>
    /// 电池类型
    /// </summary>
    public string? BatteryType { get; set; }

    /// <summary>
    /// 充电协议
    /// </summary>
    public string? ChargingProtocol { get; set; }

    /// <summary>
    /// 品牌
    /// </summary>
    public string? Brand { get; set; }

    /// <summary>
    /// 电池容量（mAh）
    /// </summary>
    public string? BatteryCapacity { get; set; }

    /// <summary>
    /// 额定容量（mAh）
    /// </summary>
    public string? RatedCapacity { get; set; }

    /// <summary>
    /// 最大输出功率
    /// </summary>
    public string? MaxOutputPower { get; set; }


    public virtual BasicData_MeasuringUnit? MeasuringUnit { get; set; }
    public virtual ProcessRoute_CraftBill? CraftBill { get; set; }

    public virtual ProductPlanning_ProductClassify? ProductClassify { get; set; }

    public virtual ICollection<ProductPlanning_ProductBillDetial> ProductPlanningProductBillDetials { get; set; } = new List<ProductPlanning_ProductBillDetial>();

    //public virtual ICollection<Production_WorkOrder> ProductionWorkOrderBills { get; set; } = new List<Production_WorkOrder>();
}
